Analysis Types & Directives
CircuitPro's simulation panel lets you select one NGSpice analysis type per run. Each option maps directly to a corresponding NGSpice dot command in the generated netlist.
Run ERC before Simulation
When checked, CircuitPro runs Electrical Rule Checks on your schematic before handing the netlist to NGSpice. Recommended to keep this on until your design is finalized it catches floating nets and unconnected pins before they cause confusing simulator errors.
Note: To run only an ERC check without simulating, select None as the analysis type.
Available Analysis Types
| UI Option | NGSpice Directive | Use it for |
|---|---|---|
| None | — | Generates the netlist without running a simulation (useful for export and ERC Check) |
| Transient Analysis | .tran | Time domain behavior — step responses, oscillation, switching waveforms |
| AC Analysis | .ac | Frequency domain response — gain/phase vs. frequency, Bode plots |
| DC Analysis | .dc | Sweeping a source and observing DC operating points |
| Noise Analysis | .noise | Input/output noise spectral density |
| Transfer Function | .tf | Small-signal gain, input/output resistance at DC |
| DC Sensitivity | .sens | How sensitive an output is to each component's value |
| Pole-Zero | .pz | Pole/zero locations of a transfer function |
Only one analysis type can be active per simulation run.
Transient Analysis fields
When Transient Analysis is selected (as in the example below):
- Stop Time — total simulated time (e.g.
40n= 40 nanoseconds). Maps to theTSTOPargument of.tran. - Step Time — the maximum internal time step NGSpice should print/use (e.g.
0.01n). Maps to theTSTEPargument.
This produces an underlying directive equivalent to:
.tran 0.01n 40n

Example: Transient Analysis configured with Stop Time = 40n, Step Time = 0.01n, plotting output voltage (v(output_0)) of Circuit.
AC Analysis fields
When AC Analysis is selected:
- Sweep Type — Decade / Octave / Linear, sets how frequency points are spaced
- Points — number of points per decade/octave, or total points for a linear sweep
- Start Frequency — sweep start (e.g.
1) - Stop Frequency — sweep end (e.g.
1MEG)
This produces an underlying directive equivalent to:
.ac dec 10 1 1MEG
AC Analysis is the only mode where the Gain and Phase signal buttons (see Signals to Plot) become selectable.

Example: AC Analysis configured with decade sweep, Stop frequency of 10G, plotting gain of (v(output_0)) in decibels (dB).
DC Analysis fields
When DC Analysis is selected:
- Source — the independent voltage/current source to sweep
- Start Value, Stop Value, Step Value — defines the sweep range and increment
- Second Source (optional) — for nested/2D DC sweeps
This produces an underlying directive equivalent to:
.dc VIN 0 1.8 0.01
Use DC Analysis to generate I-V curves, find operating points across a bias range, or sweep a control voltage.

Example: DC analysis till 1.8V, with step size 0.01 plotting output voltage (v(output_0)) of Circuit.
Noise Analysis fields
When Noise Analysis is selected:
- Output Node — the node at which total output noise is measured
- Input Source — the source noise is referred back to (for input-referred noise)
- Sweep Type / Points / Start Frequency / Stop Frequency — same frequency-sweep fields as AC Analysis, since noise is computed across a frequency sweep
This produces an underlying directive equivalent to:
.noise v(out) vin dec 10 1 1MEG
Results include both output-referred and input-referred noise spectral density.

Example: Noise Analysis configured with decade sweep, Stop frequency of 10G, plotting noise of (Vinput_0) and (v(output)).
Transfer Function fields
When Transfer Function is selected:
- Output Variable — the node voltage or branch current treated as the output
- Input Source — the independent source treated as the input
This produces an underlying directive equivalent to:
.tf v(out) vin
Transfer Function analysis reports three values: small-signal DC gain, input resistance, and output resistance — it does not produce a plotted waveform, only single operating-point values.

Example: Plotting Transfer Function of the circuit.
DC Sensitivity fields
When DC Sensitivity is selected:
- Output Variable — the node voltage or branch current whose sensitivity is being analyzed
- (Optional) Component List — restrict sensitivity calculation to specific components instead of every component in the netlist
This produces an underlying directive equivalent to:
.sens v(out)
Results show, for every swept component, how much the output changes per unit change in that component's value — useful for identifying which component tolerances matter most.

Example: Viewing DC Sensitivity of (v(output_0)).
Pole-Zero fields
When Pole-Zero is selected:
- Input Node Pair — positive/negative input nodes
- Output Node Pair — positive/negative output nodes
- Transfer Type — Voltage transfer function or Transimpedance, depending on whether the output is a voltage or current
This produces an underlying directive equivalent to:
.pz in_pos in_neg out_pos out_neg vol pz
Pole-Zero analysis reports the s-plane locations of poles and zeros for the selected transfer function — useful for stability analysis (e.g. checking phase margin contributions of each pole).

Example: Plotting Pole-Zero of circuit for Stability analysis.
Setup Directives (Optional)
The Parameters (.PARAM) field lets you define netlist-level parameters that can be referenced anywhere in your schematic's component values, e.g.:
VDD=1.8 freq=1MEG
This is equivalent to adding a .param VDD=1.8 freq=1MEG line to the generated netlist. Combine this with the Temperature (.TEMP) field (below it) to sweep or fix the simulation temperature in °C.

Example: For Setting Up Directives.